package study.javabasic.classloader;

/**
 * Created by zhangshuhan on 2019/3/12.
 */


/**
 * Created with IntelliJ IDEA. Description: User: yilin Date: 2019-03-12 Time: 16:10
 * @author HP
 */
public class Book{

    public static void main(String[] args) {
        staticFunction();
    }

    static Book book = new Book();

    static {
        System.out.println("书的静态代码块");
    }
    {
        System.out.println("书的普通代码块"+",amount=" + amount);
    }

    Book() {
        System.out.println("书的构造方法");
        System.out.println("price=" + price + ",amount=" + amount);
    }

    public static void staticFunction() {
        System.out.println("书的静态方法");
    }

    Integer        price  = 110;
    static Integer amount = 112;


}


